package com.atguigu.tingshu.user.factory;

import com.atguigu.tingshu.common.execption.GuiguException;
import com.atguigu.tingshu.user.strategy.ItemTypeStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author atguigu-mqx
 * @ClassName StrategyFactory
 * @description: TODO
 * @date 2024年08月13日
 * @version: 1.0
 */
public interface StrategyFactory {

    /**
     * 根据itemType获取对应的策略
     * @param itemType
     * @return
     */
    ItemTypeStrategy getStrategy(String itemType);

}
